import Vue from 'vue'
import App from './App.vue'
import 'lib-flexible/flexible'
import Vant from 'vant';
import 'vant/lib/index.css';
import VueRouter from 'vue-router'
import router from './router/index'
import http from './http/index.js'
import api from './http/api.js'
Vue.prototype.$http = http;
Vue.prototype.$api = api

router.beforeEach((to,from,next) => {
window.document.title = to.meta.title == undefined?'车主小程序':to.meta.title
next()
})
Vue.use(VueRouter)
Vue.use(Vant);
Vue.config.productionTip = false
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
